import request from '@/utils/request'

// 查询arrears列表
export function listArrears(query) {
  return request({
    url: '/bk/arrears/list',
    method: 'get',
    params: query
  })
}

// 查询arrears详细
export function getArrears(id) {
  return request({
    url: '/bk/arrears/' + id,
    method: 'get'
  })
}

// 新增arrears
export function addArrears(data) {
  return request({
    url: '/bk/arrears',
    method: 'post',
    data: data
  })
}

// 修改arrears
export function updateArrears(data) {
  return request({
    url: '/bk/arrears',
    method: 'put',
    data: data
  })
}

// 删除arrears
export function delArrears(id) {
  return request({
    url: '/bk/arrears/' + id,
    method: 'delete'
  })
}
